import { getData, postData } from '../../../untils/request';

// 通过用户id查找用户
export async function getUserInfo(id) {
    const result = await getData(`/user/getUserById/${id}`);
    return result;
}

// 获取点赞文章
export async function getLikesArticle(uuid, page, size) {
    const result = await getData(`/article/getlikes/${uuid}/${page}/${size}`);
    return result;
}

// 统计粉丝量
export async function countFan(concernedId) {
    const result = await getData(`/concerned/countFans/${concernedId}`);
    return result;
}

// 统计关注者
export async function countConcerned(userId) {
    const result = await getData(`/concerned/countConcerneds/${userId}`);
    return result;
}

// 私聊
export async function privateChat(data) {
    const result = await postData(`/privateChat/privateChat`, data);
    return result;
}